/*	BuildSCV class declaration.
 *
*/

#ifndef GROUND_ATTACK_H_
#define GROUND_ATTACK_H_

#include "Behavior.h"
#include <BWAPI.h>

class GroundAttack : public Behavior
{
public:
	GroundAttack(std::string incName = "GroundAttack");
	
	void Enter();
	void Execute();
	void Exit();

	bool CheckConditions();
	BWAPI::Unit* findNearestMarine(BWAPI::Unit*);

private:
	// On which frame did we last send everyone to attack
	std::list<BWAPI::Unit*> groundArmy;
	int lastGroundAttackFrame;
	BWAPI::Unit* currentTargetBuilding;
	BWAPI::TilePosition currentTargetTile;

};

#endif
